package com.kgc.community.service.impl;

import com.kgc.community.mapper.RoleMapper;
import com.kgc.community.pojo.Role;
import com.kgc.community.service.RoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;

@Service
public class RoleServiceImpl implements RoleService {

    @Autowired
    RoleMapper roleMapper;

    @Override
    public List<Role> searchRoles() {
        return roleMapper.selectByExample(null);
    }
}
